From: Owen W. Taylor Date: Mon, 24 May 2010 04:08:00 +0000 (-0400) Subject: [perf] Fix factor of ten in seconds => microseconds conversion X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10041 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cbde065a01677534109ad92408abe538801e91a2;p=gnome-shell.git [perf] Fix factor of ten in seconds => microseconds conversion Typo: 10000000 instead of 1000000 for a million. Also, use G_INT64_CONSTANT instead of LL for a 64-bit constant, to avoid extraneous 128-bit arithmetic on 64-bit machines. --- diff --git a/src/shell-perf-log.c b/src/shell-perf-log.c index 262e47e15..48ebaffb2 100644 --- a/src/shell-perf-log.c +++ b/src/shell-perf-log.c @@ -130,7 +130,7 @@ get_time (void) g_get_current_time (&timeval); - return timeval.tv_sec * 10000000LL + timeval.tv_usec; + return timeval.tv_sec * G_GINT64_CONSTANT(1000000) + timeval.tv_usec; } static void